<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script type="text/javascript">
        var arr = [7, 5, 6, 4, 8, 9];
        arr.sort();
        document.write(arr);
    </script>
</head>
<body>

</body>
</html>